libp2p-allow-block-list 0.2.0

Allow/block list connection management for libp2p.
Documentation
A libp2p module for managing allow and blocks lists to peers. # Allow list example ```rust # use libp2p_swarm::Swarm; # use libp2p_swarm_derive::NetworkBehaviour; # use libp2p_allow_block_list as allow_block_list; # use libp2p_allow_block_list::AllowedPeers; # #[derive(NetworkBehaviour)] # #[behaviour(prelude = "libp2p_swarm::derive_prelude")] struct MyBehaviour { allowed_peers: allow_block_list::Behaviour, } # fn main() { let behaviour = MyBehaviour { allowed_peers: allow_block_list::Behaviour::default() }; # } ``` # Block list example ```rust # use libp2p_swarm::Swarm; # use libp2p_swarm_derive::NetworkBehaviour; # use libp2p_allow_block_list as allow_block_list; # use libp2p_allow_block_list::BlockedPeers; # #[derive(NetworkBehaviour)] # #[behaviour(prelude = "libp2p_swarm::derive_prelude")] struct MyBehaviour { blocked_peers: allow_block_list::Behaviour, } # fn main() { let behaviour = MyBehaviour { blocked_peers: allow_block_list::Behaviour::default() }; # } ```